home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
windows
/
mtw32301.zip
/
VARIABLE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-02-09
|
1KB
|
65 lines
;
;
; Assignement of values to variables
;
$(aA) := "100"
$(BB) := $(aA)
$(b) := $(AA)
$(A) := "10"
;
; Calculation with numeric - strings
;
$(A) := $(A) + "20"
$(A) := $(A) + $(A)
$(B) := "10"
;
; Concat of string - variables
;
$(B) := $(B) & "20"
$(C) := $(B) + $(A)
;
; INIFile
;
$E$ := $(_INIFILE)
$E$ := $(_INIPATH)
$E$ := $(_CMDFILE)
$E$ := $(_CMDPATH)
if $(_CMDFILE) == variable.cmd
$TRUE$ := TRUE
else
$TRUE$ := FALSE
endif
+[$TRUE$]Wert=True
;
; The $F$ variable is assigned the Value of the given Section/Key
; If it does not exist, then a empty string is assigned
;
$(F) := $(_INIVALUE[Section]Key)
$(G) := $(_FILEINIVALUEC:\WIN95\WIN.INI[Windows]Device)
;
; Returns the VESA drivername
;
$(V) := $(_VESA)
;
; Access the NW bindery
;
$(FN) := $(_NW_LOGINNAME)
$(FN) := $(_NW_OBJID)
$(FN) := $(_NW_LOGINTIME)
$(FN) := $(_NW_CONNECTION)
$(FN) := $(_NW_FULLNAME)
$(FN) := $(_NW_NICADDR)
$(FN) := $(_NW_INETADDR)
;
;
; Environment variables are accessed with $(%....)
;
$(TMP) := $(%TEMP)